#ifndef CONTEXT_SETTER_H
#define CONTEXT_SETTER_H
#include <QObject>
#include <QtQmlIntegration>

class ContextSetter:public QObject
{
    Q_OBJECT
    QML_ELEMENT
    QML_SINGLETON
public:
    ContextSetter();


    Q_INVOKABLE void setContext(QObject* obj,QString name,QVariant value);
    Q_INVOKABLE QVariant context(QObject* obj,QString name);

    Q_INVOKABLE void setContexts(QObject* obj,QVariantMap ctx);
private:

};


#endif
